import VehicleInformationShow from "./VehicleInformationShow";
import VehicleInformationAdd from "./VehicleInformationAdd";
import VehicleInformationDetails from "./VehicleInformationDetails";
import { useState } from "react";
const Vehicle_information_management = () => {
  const [state, setState] = useState(1);
  let com;
  if (state == 1) {
    com = <VehicleInformationShow setState={setState}></VehicleInformationShow>;
  } else if (state == 2) {
    com = <VehicleInformationAdd setState={setState}></VehicleInformationAdd>;
  } else {
    com = (
      <VehicleInformationDetails
        setState={setState}
      ></VehicleInformationDetails>
    );
  }
  return <>{com}</>;
};

export default Vehicle_information_management;
